Documentation for class gauge

Inherits from 	gadget 

Properties declared in gauge 
	background_color 
	does_show_labels 
	does_show_scale 
	font 
	major_step 
	maximum_value 
	meter_color 
	minimum_value 
	minor_step 
	value 

Class Methods declared in gauge 
	new 

Methods declared in gauge 
	action 
		take_float_value_from(object) 
		take_integer_value_from(object) 
		take_number_value_from(object) 
	any 
		background_color 
		float_value 
		font 
		integer_value 
		major_step 
		maximum_value 
		meter_color 
		minimum_value 
		minor_step 
		number_value 
		set_background_color(color) 
		set_font(font) 
		set_major_step(number) 
		set_maximum_value(number) 
		set_meter_color(color) 
		set_minimum_value(number) 
		set_minor_step(number) 
		set_value(number) 
		take_float_value_from(object) 
		take_integer_value_from(object) 
		take_number_value_from(object) 
		value 
	get 
		background_color 
		font 
		major_step 
		maximum_value 
		meter_color 
		minimum_value 
		minor_step 
		value 
	set 
		set_background_color(color) 
		set_font(font) 
		set_major_step(number) 
		set_maximum_value(number) 
		set_meter_color(color) 
		set_minimum_value(number) 
		set_minor_step(number) 
		set_value(number) 

Class 
#begin_class
gauge 
The class gauge is a sub-class of the class gadget. 
A gauge is a gadget that displays its value with a meter on a scale. 
A speedometer and a thermometer are two different real-life examples of gauges. 
The class gauge is a so-called abstract class. It implements the methods that is shared by all the different gauge-classes. 
Note: You cannot create instances of an abstract class.
#end_class

Properties 

#begin_property
background_color 
Stores the color object for the background color of the gauge.
#end_property

#begin_property
does_show_labels 
Stores a boolean value. If it is true the labels of the gauge will be visible.
The default value is true.
#end_property

#begin_property
does_show_scale 
Stores a boolean value. If it is true the scale of the gauge will be visible.
The default value is true.
#end_property

#begin_property
font 
Stores the font object that specifies the font and fontsize of the labels of the gauge.
#end_property

#begin_property
major_step 
Stores the distance between the major scale-steps. Every major scale-step will have a label.
The default value is 10.
#end_property

#begin_property
maximum_value 
Stores the maximum value of the gauge.
The default value is 100.
#end_property

#begin_property
meter_color 
Stores the color object for the color of the meter in the gauge.
#end_property

#begin_property
minimum_value 
Stores the minimum value of the gauge.
The default value is 0.
#end_property

#begin_property
minor_step 
Stores the distance between the minor scale-steps. Minor scale-steps do not have labels.
The default value is 5.
#end_property

#begin_property
value 
Stores the current value of the gauge.
#end_property

Methods 

#begin_method
background_color 
Returns the background_color property of the gauge.
#end_method

#begin_method
float_value 
Returns the value of the gauge as a float value
#end_method

#begin_method
font 
Returns the font property of the gauge.
#end_method

#begin_method
integer_value 
Returns the value of the gauge as an integer.
#end_method

#begin_method
major_step 
Returns the major_step property of the gauge.
#end_method

#begin_method
maximum_value 
Returns the maximum_value property of the gauge.
#end_method

#begin_method
meter_color 
Returns the meter_color property of the gauge.
#end_method

#begin_method
minimum_value 
Returns the minimum_value property of the gauge.
#end_method

#begin_method
minor_step 
Returns the minor_step property of the gauge.
#end_method

#begin_method
number_value 
Returns the value of the gauge as a number
#end_method

#begin_method
set_background_color(color) 
Sets the background_color property to color.
Returns self.
#end_method

#begin_method
set_font(font) 
Sets the font property to font.
Returns self.
#end_method

#begin_method
set_major_step(number) 
Sets the major_step property to number.
Returns self.
#end_method

#begin_method
set_maximum_value(number) 
Sets the maximum_value property to number.
Returns self.
#end_method

#begin_method
set_meter_color(color) 
Sets the meter_color property to color.
Returns self.
#end_method

#begin_method
set_minimum_value(number) 
Sets the minimum_value property to number.
Returns self.
#end_method

#begin_method
set_minor_step(number) 
Sets the minor_step property to number.
Returns self.
#end_method

#begin_method
set_value(number) 
Sets the value property to number.
Returns self.
#end_method

#begin_method
take_float_value_from(object) 
Sets the value of the gauge to the float value of object.
#end_method

#begin_method
take_integer_value_from(object) 
Sets the value of the gauge to the integer value of object.
#end_method

#begin_method
take_number_value_from(object) 
Sets the value of the gauge to the number value of object.
#end_method

#begin_method
value 
Returns the value of the gauge.
#end_method

Class Methods 

#begin_class_method
new 
You cannot create instances of the class gauge since it is an abstract class.
Ex:
{gauge}:new
raises an exception
Exception:
The message new was sent to the class gauge but gauge is an abstract class which you can't make instances of
#end_class_method